package cn.hbwe.service;

import cn.hbwe.Dto.pLoginDTO;
import cn.hbwe.Dto.pRegisterDTO;
import cn.hbwe.pojo.entity.Doctor;
import cn.hbwe.pojo.entity.Patient;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 7组
 * @since 2023-10-18
 */
public interface IPatientService extends IService<Patient> {

    Patient plogin(pLoginDTO loginDTO);

    Patient pregister(pRegisterDTO registerDTO);

    List<Patient> getPatientId(int Id);

    IPage<Patient> getPage(Long currentPage, Long pageSize, String name);


    String pname(int id);

    Patient updatePatient(pRegisterDTO registerDTO);
}
